package com.dqy.twserver.server.support;

import io.netty.channel.socket.nio.NioSocketChannel;

public class Player {
    String playerName;
    NioSocketChannel socketChannel;
    
    NioSocketChannel mutilSocktChannel; //用于广播消息
    int roomId;
    int playerColor;
    int playReadi; //是否已准备 0否1是

    int frameNum;

    public Player(String playerName, NioSocketChannel socketChannel) {
        this.playerName = playerName;
        this.socketChannel = socketChannel;
    }

    public int getPlayReadi() {
        return playReadi;
    }

    public void setPlayReadi(int playReadi) {
        this.playReadi = playReadi;
    }

    public int getFrameNum() {
        return frameNum;
    }

    public void setFrameNum(int frameNum) {
        this.frameNum = frameNum;
    }

    public String getPlayerName() {
        return playerName;
    }

    public NioSocketChannel getMutilSocktChannel() {
        return mutilSocktChannel;
    }

    public void setMutilSocktChannel(NioSocketChannel mutilSocktChannel) {
        this.mutilSocktChannel = mutilSocktChannel;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }

    public NioSocketChannel getSocketChannel() {
        return socketChannel;
    }

    public void setSocketChannel(NioSocketChannel socketChannel) {
        this.socketChannel = socketChannel;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public int getPlayerColor() {
        return playerColor;
    }

    public void setPlayerColor(int playerColor) {
        this.playerColor = playerColor;
    }
}
